package com.lu.behavior.controller.v1;

import com.lu.behavior.service.ThumbsUpService;
import com.lu.model.behavior.dto.LikesBehaviorDto;
import com.lu.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/")
public class ThumbsUpController {

    @Autowired
    private ThumbsUpService thumbsUpService;


    /**
     * 点赞
     * @param dto
     * @return
     */
    @PostMapping("/likes_behavior")
    ResponseResult like(@RequestBody LikesBehaviorDto dto) {
        return thumbsUpService.likeUp(dto);
    }
}
